/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package aux;

import base.Vertice;
import java.util.AbstractMap;
import java.util.HashMap;

/**
 *
 * @author diego
 */
public class General {
    public static final Integer infinity = Integer.MAX_VALUE;

    public static int extractWeight(Vertice v1, Vertice v2, HashMap<AbstractMap.SimpleEntry<Vertice, Vertice>, Integer> weights) {
        AbstractMap.SimpleEntry<Vertice, Vertice> pair = new AbstractMap.SimpleEntry<>(v1, v2);
        return weights.get(pair);
    }
    
}
